package org.dtp.examples.apollo.alarm;

import org.dtp.alarm.AlarmMessage;
import org.dtp.alarm.ThreadPoolAlarmNotify;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @ClassName ThreadPoolAlarm
 * @Description 自定义告警
 * @Author wangyiqi
 * @Date 2021-08-29-19:08
 **/
@Service
public class ThreadPoolAlarm implements ThreadPoolAlarmNotify {

    private static final Logger logger = LoggerFactory.getLogger(ThreadPoolAlarm.class);

    @Override
    public void alarmNotify(AlarmMessage alarmMessage) {
        logger.info("ThreadPoolAlarm: {}", alarmMessage);
    }
}
